<template>
  <div>
    <video id="video" controls autoplay>
      <source :src="movie.mp4" type="video/mp4" />
      <source :src="movie.mp4" type="video/ogg" />
      您的浏览器不支持Video标签。
    </video>
    <div id="output"></div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      movie: {
        mp4: ''
      }
    };
  },
  mounted() {
    if (!this.$route.params.data) {
      history.go(-1);
    } else {
      this.movie.mp4 = this.$route.params.data.image;
    }
  },
  methods: {}
};
</script>

<style lang="less" scoped>
video {
  width: 100%;
}
</style>
